import request from "@/utils/Request.ts"

export const loginForm = (query:object) => {
    return request({
        url: '/login',
        method: 'post',
        data: query,
    });
}

// 请求中： 请求参数和返回值的类型都需要进行约束

// 验证码请求
// export const CaptchaAPI = ():Promise<CaptchaAPIRes> =>api.get("/prod-api/captchaImage");

// test - 宝可梦 https://pokeapi.co/api/v2/pokemon
export const CaptchaAPI = () =>request.get("/api/v2/pokemon");

// 登录请求
// export const LoginAPI = (params:LoginAPIReq):Promise<LoginAPIRes> =>api.post("/prod-api/Login",params);
// export const LoginAPI = () =>api.post("/prod-api/Login",params);